package com.cn.pack.feign;

import com.cn.pack.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(name = "user-service", url = "http://localhost:8081")
public interface UserService {

    @RequestMapping(path = "/user/query", method = RequestMethod.POST)
    User query(@RequestBody User user);
}
